home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / p2c / p2c 1.21a2.1 / p2c 1.21a2.1.rsrc / TEXT_130_INPUT LANGUAGE.txt < prev    next >
Encoding:
Text File  |  1994-11-22  |  3.9 KB  |  111 lines

  1. # INPUT LANGUAGE
  2.  
  3. Language    OBJECT # Known languages:
  4.     #    HP (default; Pascal Workstation version)
  5.     #    MODCAL (HP's advanced Pascal)
  6.     #    HP-UX (almost same as HP)
  7.     #    TURBO (vers 5.0 for IBM PC)
  8.     #    OREGON (Oregon Software Pascal-2 V2.1)
  9.     #    VAX (VAX/VMS Pascal)
  10.     #    MODULA (Modula-2)
  11.     #    UCSD (almost same as TURBO)
  12.     #    MPW (MPW Pascal 2.0 for the Mac)
  13.     #  OBJECT (Object Pascal, e.g., MPW or Think)
  14.     #  BERK (SUN Berkeley Pascal)
  15.     #  TIP (Texas Instruments Pascal)
  16.  
  17. Modula2 # 1=Use modula-2 block structure (IF-END)
  18.     # 0=Use Pascal block structure (IF-BEGIN-END)
  19.     # default=1 if Language=MODULA, 0 for others
  20.  
  21. Integer16    # 1=assume Pascal integers are 16 bits
  22.     # 0=assume Pascal integers are 32 bits
  23.     # 2=use native C "int" for Pascal "integer"
  24.     # default=0 for HP/Oregon/VAX, 1 for Turbo/MPW
  25.  
  26. DoubleReals # 1=convert Pascal real to C double
  27.     # 0=convert Pascal real to C float
  28.     # default=1 for Turbo and HP-UX, 0 for HP
  29.  
  30. UnsignedChar    # 1=Pascal char must be unsigned
  31.     # 0=Pascal char must be signed
  32.     # 2=doesn't matter; use native C "char"
  33.     # default=unsigned, but use native "char"
  34.  
  35. NeedSignedByte    # 1=use "signed char" even if not available
  36.     # 0 or default=use "short" if not sure
  37.  
  38. PascalEnumSize    # Size in BITS of a Pascal enum type.
  39.     # Default=according to Language.
  40.  
  41. NestedComments    # 1=Pascal comments may be nested
  42.     # 2=comments don't nest, but { must match }
  43.     # 0=comments are unnested, unmatched
  44.     # default=0 in HP/MODCAL, 2 in Turbo
  45.  
  46. ExternWords external    # Words analogous to "forward" for declaring
  47. ExternWords extern    # procedures or functions external.
  48. ExternWords fortran
  49.  
  50. CExternWords    nonpascal    # Words like ExternWords but for which any
  51. CExternWords    # leading and/or trailing "_" is removed
  52. CExternWords    # from the Pascal function/variable names.
  53.  
  54. ImportAll    # 1=read all of each imported file, in case
  55.     #    file contains several modules/units
  56.     # 0=read only interface text of first module
  57.     # default=1 in HP/MODCAL, 0 in others
  58.  
  59. ImplModules # 1=MODULE starts a block like PROGRAM.
  60.     # 0=MODULEs have export/implement sections.
  61.  
  62. TurboObjects            # 1=Turbo Pascal-style OOP support
  63.                 # 0=Object Pascal-style OOP support
  64.                 # default=1 in Turbo, 0 in MPW/Object
  65.  
  66. PascalSignif    # Number of significant characters in Pascal
  67.     # identifiers; default=unlimited
  68.  
  69. PascalCaseSens    # 1=Pascal idents are case-sensitive,
  70.     #    keywords and predef words are u.c. or l.c.
  71.     # 2=case-sens, keywords and predef words u.c.
  72.     # 3=case-sens, keywords and predef words l.c.
  73.     # 0=not case-sensitive
  74.     # default=2 in Modula-2, otherwise 0
  75.  
  76. DollarIdents    # 1='$' is legal in Pascal and C identifiers
  77.     # 2=convert '$' (and '%') in idents into C '_'
  78.     # 0='$' is for HP directives/Turbo hex consts
  79.     # default=1 for Oregon & VAX Pascal only
  80.  
  81. IgnoreNonAlpha    # 1=ignore _, $, % in Pascal identifiers
  82.     # 0=retain them (subject to DollarIdents)
  83.     # default=1 for UCSD, 0 otherwise
  84.  
  85. InputTabSize    # Number of characters per tab stop in input
  86.     # file, for reading Pascal indentation.
  87.     # Default=8.
  88.  
  89. SeekBase            # Index of first record in a file, for SEEK.
  90.                 # default=0 for Turbo/UCSD/MPW, 1 otherwise.
  91.  
  92. LowPrecLogicals            # 1=AND, OR, NOT have lowest precedence.
  93.                 # 0=AND has same prec as *, OR same as +.
  94.                 # default=1 for TIP, 0 otherwise.
  95.  
  96. CommonExtern            # 1=TIP "common" variables are decl'd "extern"
  97.                 # 0 or default=TIP commons are decl'd plain.
  98.  
  99. InputTabSize                    # Number of characters per tab stop in input
  100.                                 # file, for reading Pascal indentation.
  101.                                 # Default=8.
  102.  
  103. ReplaceBefore "{$ifc undefined" "{EMBED #ifndef" # Textual replacements on input text lines:
  104. ReplaceBefore "{$ifc " "{EMBED #if " # "ReplaceBefore foo = bar" replaces all
  105. ReplaceBefore "{$elsec" "{EMBED #else" # occurrences of "foo" with "bar" while
  106. ReplaceBefore "{$endc" "{EMBED #endif" # reading.  Strings may be quoted if they
  107. ReplaceBefore "{$setc" "{EMBED #define" # contain spaces or "=" signs.  Currently
  108. ReplaceBefore                   # only literal matches are done, not patterns.
  109.  
  110.  
  111.